Even though the API documentation doesn't say so, the underlying
Cogl texture of a ClutterTexture may be unset, so check for that
case to avoid a runtime warning.
https://bugzilla.gnome.org/show_bug.cgi?id=784353
CoglTexture *texture;
texture = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (actor));
- shadow_pipeline = _st_create_shadow_pipeline (shadow_spec, texture);
+ if (texture)
+ shadow_pipeline = _st_create_shadow_pipeline (shadow_spec, texture);
}
else
{